﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 练习2
{
    class Program
    {
        static void Main(string[] args)
        {
            // 1.字符对应的ASCII码
            //string str = Console.ReadLine();
            //char c = char.Parse(str);
            //int num = c;

            //int result = 'a' - 'A'; //首先，字符会隐式转换为int类型，大小是它所对应的ASCII，然后再去相减
            //Console.WriteLine("输入的字符对应的ASCII是：{0}", num);

            //2.输入3位数，交换
            //string str = Console.ReadLine();
            //int num = int.Parse(str);   //123

            //int ge = num % 10;                  //个位数
            //int bai = num / 100;                //百位数
            //int shi = (num - bai * 100) / 10;   //十位数
            //Console.WriteLine("{0}{1}{2}", ge, shi, bai);

            // 3.秒转天、小时、分钟、秒
            int second = int.Parse(Console.ReadLine());
            //计算天数，括号里面代表一天的秒数
            int day = second / (60 * 60 * 24);
            //计算小时
            int hour = (second % (60 * 60 * 24)) / 3600;
            //计算分钟
            int minute = (second % (60 * 60 * 24)) % 3600 / 60;
            //计算秒数
            second %= 60;
            Console.WriteLine("等于{0}天{1}小时{2}分钟{3}秒", day, hour, minute, second);
        }
    }
}